package pl.edu.uj.tcs.blef.protocol;

import java.net.Socket;

import pl.edu.uj.tcs.blef.server.Table;

/**
 * An abstract handler which allows to work upon a table.
 * @author Maciej Bendkowski
 *
 */
public abstract class AbstractTableHandler implements RequestHandler {
	/**
	 * Contains the table on which the handler works.
	 * @uml.property  name="table"
	 */
	protected Table table;
	
	/**
	 * Creates a new handler upon the given Table.
	 * @param table The table where the handler works.
	 */
	public AbstractTableHandler(Table table){
		this.table = table;
	}
	
	@Override
	public abstract void handle(Request request, Socket socket);
}
